

function request(that, params, sCallback, eCallback){
	url = apiUrl + params.url;
	if(!params.data) {
		params.data = {};
	}
	params.data.token = token;
	params.data.mobileType = 'h5';	
	params.data.merid = merid;
	that.$http.post(url,params.data,{emulateJSON : true}).then(function(res){
		layer.closeAll();
		var res = res.body;
		console.log('请求成功');
		console.log(res);
		sCallback && sCallback(res);
	},function(error){
		console.log('请求失败');
		console.log(error);
		if(eCallback) {
			eCallback(error);
		} else {
			layer.closeAll();
			mui.toast(error.body.msg);
		}
	});
}


